#include <myhead.h>
//typedef struct sockaddr_in addr_in_t;
//typedef struct sockaddr addr_t;      
//typedef struct sockaddr_un addr_un_t;
struct login
{
	char name[20];
	char password[20];
};
struct Plink
{
	union
	{
		int len;
		struct login loginn;
	};
	struct Plink *Next;
};
struct pack
{
	int packsize;//协议包大小
	int client;//远端账户
	char date[4096];
};
//遍历存储至链表              
struct Plink*my_plink(FILE*F);
//遍历查找
int my_login(struct Plink*,struct login);
//打包数据
void pack_append(struct pack*,struct login);
//解析数据
//void pack_read();
//
//多线程服务器端
void* create_server(void*arg);
//多线程客户端
void* create_client(void*arg);
